package com.cy.ppj.model.vo.admin.rule;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @description: 权限菜单树状图
 * @author: Ocean
 * @create: 2018-08-16 14:33
 **/
@Data
@ApiModel("权限菜单树状图")
public class MenuAdminVO {

    @ApiModelProperty(value = "菜单ID", example = "0")
    @JsonProperty("key")
    private Long id;

    @ApiModelProperty(value = "菜单名称")
    @JsonProperty("title")
    private String name;

    @ApiModelProperty(value = "是否选择", example = "0")
    private boolean checked;

    @ApiModelProperty(value = "子菜单")
    private List<MenuAdminVO> children;
}
